package services;

import daos.JugadorDAO;

public class CambiarPasswordService extends AbstractService {

	private String alias;
	private String viejaPassword;
	private String nuevaPassword;
	
	public CambiarPasswordService(String alias, String viejaPassword, String nuevaPassword){
		this.alias = alias;
		this.viejaPassword = viejaPassword;
		this.nuevaPassword = nuevaPassword;
	}
	
	@Override
	public void doYourMagic() {
		JugadorDAO jDao = new JugadorDAO();
		jDao.cambiarPassword(this.alias, this.viejaPassword, this.nuevaPassword);
	}

}
